package cn.lele.reggie.service;

import cn.lele.reggie.dto.DishDto;
import cn.lele.reggie.entity.Dish;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface DishService extends IService<Dish> {

    List<DishDto> listDish(Long categoryId,Integer status);

    void saveDish(DishDto dish);

    Page<DishDto> pageDishAndflavour(Integer page, Integer pageSize, String name);

    DishDto getDishDtoById(Long id);

    void updateDishAndFlavour(DishDto dishDto);

    void updateStatus(Integer statusId, Long[] ids);

    void deleteWithFlavour(Long[] ids);
}
